home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 579 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.5 KB

  1. Path: ix.netcom.com!netnews
  2. From: richrug@ix.netcom.com(RICHARD RUGANI)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Please help with Turbo C++ Lite
  5. Date: 7 Jan 1996 08:54:36 GMT
  6. Organization: Netcom
  7. Message-ID: <4co1oc$7uh@ixnews3.ix.netcom.com>
  8. References: <pburgess.1.005AB57C@fgi.net>
  9. NNTP-Posting-Host: ix-den13-06.ix.netcom.com
  10. X-NETCOM-Date: Sun Jan 07 12:54:36 AM PST 1996
  11.  
  12. In <pburgess.1.005AB57C@fgi.net> pburgess@fgi.net writes: 
  13. >
  14. >This may sound like an idiot's question, but....
  15. >
  16. >I just bought Turbo C++ Lite, and whenever I try to run a program 
  17. >from the IDE, it says "Cannot load filename.EXE."
  18. >When I try to run it from the command line, I get a 
  19. >message similar to "This example program can 
  20. >only be run from the IDE."
  21. >
  22. >Anyone got any ideas about how to correct this
  23. >problem?
  24. >
  25. >I think I have my directories set right (I've been
  26. >using Turbo Pascal for about 3 years, so it should be
  27. >about the same).  Also, I tried putting the location in
  28. >the path, and it still doesn't work.
  29. >
  30.  
  31. Um, I think you missed the point of the 'Lite' in
  32. Turbo C++ Lite.
  33.  
  34. Lite is not a full featured compiler.  It is a 'light'
  35. version of the real thing.
  36.  
  37. You cannot create stand alone programs with Lite.  You
  38. can only create (and save) source files (with .C or .CPP
  39. extensions ) which can only be run from within the Lite
  40. IDE.
  41.  
  42. The error messages you received indicate you are trying
  43. to run .exe files from within the IDE or from the DOS
  44. command line.
  45.  
  46. The .exe files which Lite makes from your source files
  47. are not executable files.  They are an intermediate step
  48. towards a full compilation, which Lite stops short of (this
  49. is the main reason it's called 'Lite').
  50.  
  51. The only files which can be 'run' with Lite are ascii source
  52. files.  Lite links your source file with any library functions
  53. your file calls, then creates and executes the corresponding
  54. machine code.  BUT, it does not save the machine code to an
  55. executable file.  So, it's not quite the compiler you expected.
  56.  
  57. There are other limitations with Lite, all of which are 
  58. mentioned in the book which carries the disk:
  59.  
  60.     'Programming C in 12 Easy Lessons' by Greg Perry
  61.  
  62. If you got the program without the book, I don't know what to
  63. tell you.
  64.  
  65. But if you have the book, you really have to read it to learn
  66. how to use Turbo C++ Lite.
  67.  
  68. I was a bit disappointed when I realized Lite's limitations,
  69. but, heck, for $39.95, I got a Turbo C/C++ IDE/compiler (well,
  70. almost), a great library, and on-line help.
  71.  
  72. It's a great teaching device, but if you want to create stand
  73. alone programs, you need another compiler.
  74.  
  75.  
  76.  
  77.  
  78.